CLONE SOUND

This command will clone a sound into the specified Destination Sound Number.

  Syntax
CLONE SOUND Destination Sound,Source Sound
  Parameters
Destination Sound
Integer
The new sound number
Source Sound
Integer
The sound number which will be clone

  Returns

This command does not return a value.

  Description

Cloning a sound will create a new sound that can be played like any other loaded sound, but uses the same WAV data of the original sound. The advantage of sound cloning is that one hundred sounds could be used with only a single instance of the sound data stored in memory. The Sound Number must be an integer value.

  Example Code
cls
load sound "man.wav",1
clone sound 2,1
play sound 2
wait 1000*8
stop sound 2
do
loop
end
  See also

SOUND Commands Menu
Index